package com.heima.day2;

import java.util.ArrayList;

public class Test4 {
    public static void main(String[] args) {
        String[] str = {"12321","45678","66789","12345678909","45678","12345678909"};
        ArrayList arrayList=new ArrayList();
        for (int i = 0; i < str.length; i++) {
            arrayList.add(str[i]);
        }
        for (int i = 0; i < arrayList.size(); i++) {
            boolean flag=true;
            for (int j = 0; j < i; j++) {
                if (arrayList.get(i).equals(arrayList.get(j))){
                    flag=false;
                    break;
                }
            }
            if (flag){
                System.out.println(arrayList.get(i));
            }

        }
    }
}
